/**
 * Created by bgy on 2016/12/6.
 * 我的水果
 */
import React from 'react';
import {Link} from 'react-router';


class GoodsQualityRecordPageComponent extends React.Component {

  constructor() {
    super();
    this.state = {
      //测试数据
    }
  }
  componentWillReceiveProps() {
    console.info('data-recordStatus');
    console.info(this.props['data-recordStatus']);

  }
  goToSelectQTWaypage(){
    window.location.href='SelectQTWay';
  }
  render() {
    var imgSrc=this.props['data-recordStatus']=='A'?'images/myFruit/icon-pass-big@2x.png':'images/myFruit/icon-notpass-big@2x.png';
    var isShow=this.props['data-recordStatus'];
    return (
      <section className='record-box'>
        <div className='record-page-title'>
          <div><img src={imgSrc} width='64'/></div>
          <div className='record-page-btn' style={{'display':isShow=='A'?'none':'block'}}><button onClick={this.goToSelectQTWaypage.bind(this)}>再次申请质检</button></div>
        </div>
        <div className='record-page-info'>质检报告界面----三方质检页面嵌进来吧！</div>
      </section>
    )
  }

}

export default GoodsQualityRecordPageComponent;
